Advertisement
Guest User

Untitled

a guest
Jan 10th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (define (main)
  2. (define (print-it it)
  3. (display it))
  4. (define test "oooo")
  5. (print-it test))
  6.  
  7. (let ((output-port (open-file "test.txt" "w")))
  8. (display "hello, world" output-port)
  9. (newline output-port)
  10. ((main) output-port) ;; ERROR: Wrong type to apply: #<unspecified>
  11. (close output-port))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement